import { DateTransformer } from './../utils/dateTransformer';
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn } from 'typeorm';

export class CommonEntity {
    
    @Column({comment:'0：正常，1：删除0',default:0})
    deleteStatus: number;

    @CreateDateColumn({precision:0,transformer: new DateTransformer()})
    createTime: string 

    @UpdateDateColumn({precision:0,transformer: new DateTransformer()})
    updateTime: string
}   